/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-12-15
 * Time: 16:31
 */
#ifndef AUTOUPDATE_READCONFIG_H
#define AUTOUPDATE_READCONFIG_H


#include <QObject>
#include <QJsonDocument>
#include <QFile>
#include <QDebug>
#include <QJsonObject>

class ReadConfig
        : public QObject
{
Q_OBJECT
public:
    ReadConfig() = default;

    ~ReadConfig() override = default;

    void ParseConfig(const QString & _type = "company");

    void SetFilePath(const QString & _file_path);

    void SetContent(const QByteArray &_content);

    const QString &getHost() const;

    const QString &getScheme() const;

    const QString &getPort() const;

    const QString &getUsername() const;

    const QString &getPassword() const;

private:
    QByteArray content_;
    QString scheme_;
    QString host_;
    QString port_;
    QString username_;
    QString password_;


};


#endif //AUTOUPDATE_READCONFIG_H
